public class test {
    public static void main(String[] args) {
        String s = "wordgoodgoodgoodbestword";
        String[] cur = {"word","good","best","good"};
        Demo1 demo = new Demo1();
        demo.findSubstring(s,cur);
    }
}
